<?php

$links = array("disciplinas.php" => "Inscripción",
      "configurar.php" => "Preferencias",
      "contacto.php" => "Contacto",
      "logout.php" => "Salir");
?>
<div class="navigation no_imprimible">
    
    <table class="navi">
        <tr>
            <td>
                <img src="imagenes/logo.png" style="height:25px;" alt="Logo">&nbsp;
            </td>
            <?php
            $borde = "";
            foreach($links as $url => $etiqueta)
            {
                $class =  basename($_SERVER['SCRIPT_NAME'])==$url?"menu activo":"menu inactivo";
                $onClick = basename($_SERVER['SCRIPT_NAME'])==$url?"":"window.location.href='$url'";
                ?><td class="<?php print $class; ?>" style="<?php print $borde; ?>" onClick="<?php print $onClick; ?>">
                    <?php print TextoHTML::entities($etiqueta); ?>
                </td><?php
                $borde = "border-left:0;";
            }
            ?>
            <td>
                &nbsp;<img src="imagenes/logo.png" style="height:25px;" alt="Logo">
            </td>
        </tr>
    </table>
</div>